#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QtSql/qsqldatabase.h>
#include "qdynamicform.h"
class QPushButton;
class mainwidget : public QWidget
{
    Q_OBJECT
public:
    explicit mainwidget(QWidget *parent = nullptr);
public slots:
    void clickManager();
    void clickInsert();
    QTableAttribute *initData(QString jsonPath);
signals:
private:
    QPushButton *btn;
    QPushButton *insertBtn;
    QDynamicForm *dynamicFrom;
    QSqlDatabase db;
};

#endif // MAINWIDGET_H
